package com.xy.template.constant;

import java.util.ArrayList;
import java.util.List;

public class ColumnExcludeUtil {
    private static List<String> extAttList2 = new ArrayList<>();
    private static List<String> extAttList = new ArrayList<>();
    static{
        extAttList2.add("ID");

        extAttList.add("IS_DELETED");
        extAttList.add("DELETE_FLAG");
        extAttList.add("TENANT_ID");
        extAttList.add("STATUS");

        extAttList.add("CREATE_USER");
        extAttList.add("CREATE_DATE");
        extAttList.add("CREATE_TIME");
        extAttList.add("CREATE_DEPT");
        extAttList.add("CREATE_USER_DEPT");
        extAttList.add("CREATE_USER_ORG");
        extAttList.add("UPDATE_USER");
        extAttList.add("UPDATE_TIME");
        extAttList.add("UPDATE_DATE");
        extAttList.add("MODIFY_USER");
        extAttList.add("MODIFY_DATE");
        extAttList.add("MODIFY_TIME");
        extAttList.add("EXT_STR1");
        extAttList.add("EXT_STR2");
        extAttList.add("EXT_STR3");
        extAttList.add("EXT_STR4");
        extAttList.add("EXT_STR5");
        extAttList.add("EXT_DATE1");
        extAttList.add("EXT_DATE2");
        extAttList.add("EXT_NUM1");
        extAttList.add("EXT_NUM2");
        extAttList.add("EXT_NUM3");
    }

    public static boolean isExt(String attName){
        if(attName == null){
            return false ;
        }
        return extAttList.contains(attName.toUpperCase());
    }

    public static boolean isExt2(String attName){
        if(attName == null){
            return false ;
        }
        return extAttList2.contains(attName.toUpperCase());
    }
}
